<!DOCTYPE html PUBLIC "-//W3C//DTD html 4.01 Transitional//EN">
<html >
	<head >
		<?php echo $header; ?>
	</head>
	<body>
		<div id="" class="header"><?php echo $title; ?></div>
		<?php echo form_open("demands/fJ", array('name'=>'demands_find_form'))?>
		<fieldset width="90%"> 
		<legend>Данные документа</legend>
		<table width="90%" class="tbl">
		<tr>
			<td>
				<?php echo $date_doc_from; ?>
			</td>
			<td>
				<?php echo $date_doc_from_field; ?>
			</td>
			<td>
				<?php echo $date_doc_to; ?>
			</td>
			<td>
				<?php echo $date_doc_to_field; ?>
			</td>
		</tr>
		<tr>
			<td>
				<?php echo $_advertisessources_rid; ?>
			</td>
			<td>
				<?php echo $_advertisessources_rid_field; ?><br>
			</td>
			<td>
				<?php echo $_demandsstatuses_rid; ?>
			</td>
			<td>
				<?php echo $_demandsstatuses_rid_field; ?><br>
			</td>
		</tr>
		</table>
		</fieldset>
		<fieldset>
		<legend>Оплата</legend>
		<table width="100%" class="tbl">
		<tr>
			<td>
				<?php echo $summ_from; ?>
			</td>
			<td>
				<?php echo $summ_from_field; ?><br>
			</td>
			<td>
				<?php echo $summ_to; ?>
			</td>
			<td>
				<?php echo $summ_to_field; ?><br>
			</td>
		</tr>
		<tr>	
			<td>
				<?php echo $summ_pay_from; ?>
			</td>
			<td>
				<?php echo $summ_pay_from_field; ?><br>
			</td>
			<td>
				<?php echo $summ_pay_to; ?>
			</td>
			<td>
				<?php echo $summ_pay_to_field; ?><br>
			</td>
			<td>
				<?php echo $_currencies_rid; ?>
			</td>
			<td colspan="10">
				<?php echo $_currencies_rid_field; ?><br>
			</td>
		</tr>
		</table>
		</fieldset>
		<fieldset>
		<legend>Подробности тура</legend>
		<table width="100%" class="tbl">
		<tr>
			<td>
				<?php echo $_touroperators_rid; ?>
			</td>
			<td>
				<?php echo $_touroperators_rid_field; ?><br>
				<font color="red"><?php echo $this->validation->_touroperators_rid_error; ?></font>
			</td>
			<td>
				<?php echo $_countries_rid; ?>
			</td>
			<td>
				<?php echo $_countries_rid_field; ?><br>
				<font color="red"><?php echo $this->validation->_countries_rid_error; ?></font>
			</td>
		</tr>
		<tr>
			<td>
				<?php echo $_curourts_rid; ?>
			</td>
			<td>
				<?php echo $_curourts_rid_field; ?>
				<font color="red"><?php echo $this->validation->_curourts_rid_error; ?></font>
			</td>
			<td>
				<?php echo $city_name; ?>
			</td>
			<td>
				<?php echo $city_name_field; ?><br>
				<font color="red"><?php echo $this->validation->city_name_error; ?></font>
			</td>
		</tr>
		<tr>
			<td>
				<?php echo $hotel_name; ?>
			</td>
			<td>
				<?php echo $hotel_name_field; ?><br>
				<font color="red"><?php echo $this->validation->hotel_name_error; ?></font>
			</td>
			<td>
				<?php echo $_hotelscats_rid; ?>
			</td>
			<td>
				<?php echo $_hotelscats_rid_field; ?><br>
				<font color="red"><?php echo $this->validation->_hotelscats_rid_error; ?></font>
			</td>
		</tr>
		<tr>
			<td>
				<?php echo $_rooms_rid; ?>
			</td>
			<td>
				<?php echo $_rooms_rid_field; ?><br>
				<font color="red"><?php echo $this->validation->_rooms_rid_error; ?></font>
			</td>
			<td>
				<?php echo $_food_rid; ?>
			</td>
			<td>
				<?php echo $_food_rid_field; ?><br>
				<font color="red"><?php echo $this->validation->_food_rid_error; ?></font>
			</td>
		</tr>
		<tr>
			<td>
				<?php echo $date_from; ?>
			</td>
			<td>
				<?php echo $date_from_field; ?><br>
				<font color="red"><?php echo $this->validation->date_from_error; ?></font>
			</td>
			<td>
				<?php echo $date_to; ?>
			</td>
			<td>
				<?php echo $date_to_field; ?><br>
				<font color="red"><?php echo $this->validation->date_to_error; ?></font>
			</td>
		</tr>
		<tr>
			<td>
				<?php echo $transfer; ?>
			</td>
			<td>
				<?php echo $transfer_field; ?><br>
			</td>
			<td>
				<?php echo $excursions; ?>
			</td>
			<td>
				<?php echo $excursions_field; ?><br>
			</td>
		</tr>
		</table>
		</fieldset>
		<fieldset>
		<legend>Участники тура</legend>
		<table width="100%" class="tbl">
		<tr>
			<td>
				<?php echo $cl_f_name; ?>
			</td>
			<td>
				<?php echo $cl_f_name_field; ?><br>
			</td>
			<td>
				<?php echo $cl_l_name; ?>
			</td>
			<td>
				<?php echo $cl_l_name_field; ?><br>
			</td>
		</tr>
		<tr>
			<td>
				<?php echo $cl_passp_seria; ?>
			</td>
			<td>
				<?php echo $cl_passp_seria_field; ?><br>
			</td>
			<td>
				<?php echo $cl_passp_num; ?>
			</td>
			<td>
				<?php echo $cl_passp_num_field; ?><br>
			</td>
		</tr>
		</table>
		</fieldset>
		<table width="100%" class="tbl">
		<tr>
			<td>
				<?php echo $descr; ?>
			</td>
			<td>
				<?php echo $descr_field; ?><br>
				<font color="red"><?php echo $this->validation->descr_error; ?></font>
			</td>
		</tr>
		<tr>
			<td>
				<?php echo $archive; ?>
			</td>
			<td>
				<?php echo $archive_field; ?><br>
				<font color="red"><?php echo $this->validation->archive_error; ?></font>
			</td>
		</tr>
		</table>
		<center>
			<?php echo form_hidden(array('goFind'=>'1')); ?>
			<?php echo form_submit('find_submit','OK'); ?>
		</center>
		<?php echo form_close(); ?>
	</body>
</html>	
